package com.ty.day4;

import java.util.LinkedList;
import java.util.Queue;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/27 14:43
 */
public class QueueDemo01 {
    public static void main(String[] args) {
        Queue<String> linkedList = new LinkedList<>();
        linkedList.offer("吉儿阳");
        linkedList.offer("居居波");
        linkedList.offer("李🐎居");
        System.out.println(linkedList);
        System.out.println(linkedList.peek());
        System.out.println(linkedList.poll());
        linkedList.add("小彭友");
        System.out.println(linkedList);
    }
}
